package cn.edu.ujn.finallab.service;

import java.util.List;

import cn.edu.ujn.finallab.dao.Customer;
import cn.edu.ujn.finallab.dao.Orders;
import cn.edu.ujn.finallab.util.Page;

public interface IOrderService {

	public List<Orders> selectAllOrder();
	
//	public Order findByName(String name);
//	
//	public Order findByNumber(String number);
//	
//	public Order findByInTime(String intime);
//	
//	public Order findByOuttime(String outtime);
	
	public List<Orders> selectByMany(String number,String name,String intime,String outtime);
	
	public int insertOrder(Orders orders);
	
	public int deleteOrder(int id);
	
	public int updateOrder(Orders orders);
	
	public Page<Orders> selectByPage(int currentPage);
	
	public List<Orders> selectByIdcard(String idcard);
	
	public Orders selectByOrderNumber(String ordernumber);
	
	public Orders selectByRoomNumberAndState(String roomnumber,String state);
	
	public Page<Orders> selectByPageOfMany(int currentPage,String number,String name,String intime,String outtime);
}
